package com.eedi.framework.social.controller.org;

//@Tag(name = "系统界面 - 社交客户端")
//@RestController
//@RequestMapping("/social-client")
//@Validated
public class OrgSocialClientController {
//
//    @Resource
//    private OrgSocialClientService orgSocialClientService;
//
//    @PostMapping("/create")
//    @Operation(summary = "创建社交客户端")
//    @PreAuthorize("@ss.hasPermission('sys:social-client:create')")
//    public CommonResult<String> createSocialClient(@Valid @RequestBody OrgSocialClientSaveReq createReqVO) {
//        return success(orgSocialClientService.createSocialClient(createReqVO));
//    }
//
//    @PutMapping("/update")
//    @Operation(summary = "更新社交客户端")
//    @PreAuthorize("@ss.hasPermission('sys:social-client:update')")
//    public CommonResult<Boolean> updateSocialClient(@Valid @RequestBody OrgSocialClientSaveReq updateReqVO) {
//        orgSocialClientService.updateSocialClient(updateReqVO);
//        return success(true);
//    }
//
//    @DeleteMapping("/delete")
//    @Operation(summary = "删除社交客户端")
//    @Parameter(name = "id", description = "编号", required = true)
//    @PreAuthorize("@ss.hasPermission('sys:social-client:delete')")
//    public CommonResult<Boolean> deleteSocialClient(@RequestParam("socialClientId") String id) {
//        orgSocialClientService.deleteSocialClient(id);
//        return success(true);
//    }
//
//    @GetMapping("/get")
//    @Operation(summary = "获得社交客户端")
//    @Parameter(name = "id", description = "编号", required = true, example = "1024")
//    @PreAuthorize("@ss.hasPermission('sys:social-client:query')")
//    public CommonResult<OrgSocialClientResp> getSocialClient(@RequestParam("socialClientId") String id) {
//        OrgSocialClientDO client = orgSocialClientService.getSocialClient(id);
//        return success(BeanUtils.toBean(client, OrgSocialClientResp.class));
//    }
//
//    @GetMapping("/page")
//    @Operation(summary = "获得社交客户端分页")
//    @PreAuthorize("@ss.hasPermission('sys:social-client:query')")
//    public CommonResult<PageResult<OrgSocialClientResp>> getSocialClientPage(@Valid OrgSocialClientPageReq pageVO) {
//        PageResult<OrgSocialClientDO> pageResult = orgSocialClientService.getSocialClientPage(pageVO);
//        return success(BeanUtils.toBean(pageResult, OrgSocialClientResp.class));
//    }

}
